@extends("backend.layout.main")


@section("after.css")

<link rel="stylesheet" href="/backend/css/bt.css">

@endsection

@section("right_content")
<div style="margin: 70px 0px 0px 30px">
<h1 style="text-align: center;">费用支出明细</h1>
<table class="table table-hover" >
    <thead>

    <tr class="success">
         <th>费用类型</th>
         <th>创建人</th>
         <th>申请时间</th>
         <th>金额</th>
         <th>内容</th>
         <th>关联项目</th>
         <th>文件附件</th>
         <th>操作</th>
         <th>审核</th>
    </tr>
    </thead>
    <tbody>
 @foreach($expense as $v)
 @foreach( explode(',',trim($v->path,',') ) as $k=>$i )
    <tr>

   
         <td>{{ $v->expense_type }}</td>
         <td>{{ $v->username }}</td>
         <td>{{ $v->time }}</td>
         <td>{{ $v->salary }}元</td>
         <td>{{ $v->description }}</td>
         <td>{{ $v->itemname }}</td>
         <td>{{ $i }}</td>
         <td><a href="/backend/work/expense/getdownload/{{ $v->uid }}/{{ $v->did }}/{{ $i }}">下载</a></td>
         <td><a href="">通过</a><a href="">不通过</a></td>

    
    </tr>
 @endforeach
 @endforeach

   
    </tbody>
</table>
</div>
@endsection





    @foreach( explode(',',trim($v->path,',') ) as $k=>$i )
    <tr class="panel">
         <td>
             {{ $k+1 }}附件---{{ $i }} <a href="/backend/work/expense/getdownload/{{ $v->uid }}/{{ $v->did }}/{{ $i }}">
             <span style="text-align: right;">下载</span></a>     
         </td>
    </tr>

    @endforeach

         @if( $v->status==2 )

         @elseif( $v->status==0 )
         <span>通过</span>
         @elseif( $v->status==1 )
         <span>未通过</span>